package com.library.dao;

import java.util.List;
import com.library.entity.*;

public interface UserRepository {
    public List<User> findAll();

    public List<User> findByPage(int offset, int limit);

    public User findByName(String userName);

    public int countUsers();

    public void updateInfo(User user);

    public void deleteByName(String userName);

    public void addUser(User user);

    public void updateUser(String password,long id);
}
